1   package com.puppycrawl.tools.checkstyle.checks.javadoc.abstractjavadoc;
2   
3   /**
4    * Some Javadoc.
5    *
6    * <p>Some Javadoc.
7    *
8    */
9   class InputAbstractJavadocCorrectParagraph {
10  
11      /**
12       * Some Javadoc.
13       *
14       * <p>{@code function} will never be invoked with a null value.
15       *
16       * @since 8.0
17       */
18      public static final byte NUL = 0;
19  
20      /**
21       * Some Javadoc.
22       *
23       * <p>Some Javadoc.
24       *
25       * <pre>
26       * class Foo {
27       *
28       *   void foo() {}
29       * }
30       * </pre>
31       *
32       * @see <a href="http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModules">
33       *     Documentation about GWT emulated source</a>
34       */
35      boolean emulated() {return false;}
36  
37      /**
38       * Some Javadoc.
39       *
40       *<pre>
41       * Test
42       * </pre>
43       *
44       * <pre>
45       * Test
46       * </pre>
47       */
48      boolean test() {return false;}
49  
50      /**
51       * Some Javadoc.
52       *
53       * <p>Some Javadoc.
54       *
55       */
56       class InnerInputCorrectJavaDocParagraphCheck {
57  
58          /**
59           * Some Javadoc.
60           *
61           * <p>Some Javadoc.
62           *
63           * <p>Some Javadoc.
64           *
65           * @since 8.0
66           */
67          public static final byte NUL = 0;
68  
69          /**
70           * Some Javadoc.
71           *
72           * <p>Some Javadoc.
73           *
74           * @see <a href="http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModules">
75           *     Documentation about GWT emulated source</a>
76           */
77          boolean emulated() {return false;}
78      }
79  
80      InnerInputCorrectJavaDocParagraphCheck anon = new InnerInputCorrectJavaDocParagraphCheck() {
81  
82      	/**
83           * Some Javadoc.
84           *
85           * <p>Some Javadoc.
86           *
87           * <p>Some Javadoc.
88           *
89           * @since 8.0
90           */
91          public static final byte NUL = 0;
92  
93          /**
94           * Some Javadoc with space at the end of first line.
95           *
96           * <p>Some Javadoc.
97           *
98           * <p>Some Javadoc.
99           *
100          * @see <a href="http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModules">
101          *     Documentation about GWT emulated source</a>
102          */
103         boolean emulated() {return false;}
104     };
105 }
106 
107 /*
108  *  This comment has paragraph without '<p>' tag.
109  *
110  *  It's fine, because this is plain comment.
111  */
112 class ClassWithPlainComment {}